package org.example.tms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.example.tms.pojo.Emp;

import java.util.List;
import java.util.Map;

@Mapper
public interface EmpMapper extends BaseMapper<Emp> {
    @MapKey("gender")
    List<Map> coutEmpGenderData();

    @MapKey("job")
    List<Map<String,Object>> coutEmpJobData();

    @MapKey("coutStundent")
    List<Map<String, Object>> coutStundentData();
}
